package com.wdf.Controller;

import com.wdf.Services.IUserService;
import com.wdf.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wdf
 * @create 2019-05-11 13:50
 **/
@RestController
@RequestMapping(value = "/user")
@RefreshScope
public class UserController {
    @Autowired
    private IUserService userService;
    @Value("${data.name}")
    private String name;
    @GetMapping(value = "/getall")
    public  String getUserList(){
        return name;
    }
}
